import java.lang.*; import java.util.*; public class Main { public static Semaphore G1 = new Semaphore(3); /* Group1 has 3 machines */ public static Semaphore G2 = new Semaphore(2); /* Group2 has 2 machines */ public static Semaphore G3 = new Semaphore(4); /* Group3 has 4 machines */ public static Semaphore G4 = new Semaphore(3); /* Group4 has 3 machines */ public static Semaphore G5 = new Semaphore(1); /* Group5 has 1 machines */ public static Storage myStorage = new Storage(0); /* Stroage has 10 spaces */ public static void main(String[] arg) { Random IA = new Random(0); //System currentSystem; DataCollection dc = new DataCollection(); Thread S = new CreateThread(G1, G2, G3, G4, G5, myStorage, dc,IA); S.start(); System.out.println("Simulation started... " ); } }